package com.cgbg.lisenter;


import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
@RabbitListener(queues = "TestDirectQueue")
public class DirectLisenter {

    /**
     * 标记处理消息的方法
     *
     * @param message
     */
    @RabbitHandler
    public void directLisenter(String message) {
        System.out.println("DirectLisenter : " + message);
    }
}
